package org.example.myleet.p704;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(0 == solution.search(new int[]{1}, 1));
        Assert.isTrue(-1 == solution.search(new int[]{1}, 2));
        Assert.isTrue(4 == solution.search(new int[]{-1,0,3,5,9,12}, 9));
        Assert.isTrue(-1 == solution.search(new int[]{-1,0,3,5,9,12}, 2));
    }
}
